package com.test39_集合应用.factory;

import com.test39_集合应用.service.IDataService;
import com.test39_集合应用.service.IHRService;
import com.test39_集合应用.service.IStudentService;
import com.test39_集合应用.service.impl.DataServiceImpl;
import com.test39_集合应用.service.impl.HRServiceImpl;
import com.test39_集合应用.service.impl.StudentServiceImpl;

public class ServiceFactory {
    private ServiceFactory() {
    }

    public static IDataService getDataServiceInstance() {
        return new DataServiceImpl();
    }

    public static IHRService getHRServiceInstance() {
        return new HRServiceImpl();
    }

    public static IStudentService getStudentServiceInstance() {
        return new StudentServiceImpl();
    }
}
